package com.mvity.framework.system.entity;

import javax.persistence.Column;
import javax.persistence.Entity;
import javax.persistence.Table;

import com.mvity.framework.common.base.BaseEntity;
import com.mvity.framework.common.global.IParent;

/**
 * 租户信息表
 * 
 * @author vity
 * @date 2012-5-10
 * @mail vity.1215@gmail.com
 */
@Entity
@Table(name = "system_tenant")
public class SystemTenant extends BaseEntity implements IParent {

	private static final long serialVersionUID = -2228571447028801787L;

	/**
	 * 租户系统内编号
	 */
	@Column(name = "tenant_code", length = 100, nullable = false)
	private String tenantCode;

	/**
	 * 租户名称
	 */
	@Column(name = "tenant_name", length = 200, nullable = false)
	private String tenantName;

	/**
	 * 租户说明
	 */
	@Column(name = "tenant_desc", length = 5000)
	private String tenantDesc;

	/**
	 * 负责人
	 */
	@Column(name = "manager", length = 100)
	private String manager;

	/**
	 * 联系邮箱
	 */
	@Column(name = "office_mail", length = 500)
	private String officeMail;

	/**
	 * 联系电话
	 */
	@Column(name = "office_phone", length = 100)
	private String officePhone;

	/**
	 * 传真号码
	 */
	@Column(name = "office_fax", length = 100)
	private String officeFax;

	/**
	 * 地址
	 */
	@Column(name = "office_address", length = 500)
	private String officeAddress;

	/**
	 * 官网地址
	 */
	@Column(name = "web_site", length = 1000)
	private String webSite;

	/**
	 * 父级集团ID
	 */
	@Column(name = "parent_id", length = 32)
	private String parentId;

	

	/**
	 * @return the tenantCode
	 */
	public String getTenantCode() {
		return tenantCode;
	}

	/**
	 * @param tenantCode the tenantCode to set
	 */
	public void setTenantCode(String tenantCode) {
		this.tenantCode = tenantCode;
	}

	/**
	 * @return the tenantName
	 */
	public String getTenantName() {
		return tenantName;
	}

	/**
	 * @param tenantName the tenantName to set
	 */
	public void setTenantName(String tenantName) {
		this.tenantName = tenantName;
	}

	/**
	 * @return the tenantDesc
	 */
	public String getTenantDesc() {
		return tenantDesc;
	}

	/**
	 * @param tenantDesc the tenantDesc to set
	 */
	public void setTenantDesc(String tenantDesc) {
		this.tenantDesc = tenantDesc;
	}

	/**
	 * @return the manager
	 */
	public String getManager() {
		return manager;
	}

	/**
	 * @param manager the manager to set
	 */
	public void setManager(String manager) {
		this.manager = manager;
	}

	/**
	 * @return the officeMail
	 */
	public String getOfficeMail() {
		return officeMail;
	}

	/**
	 * @param officeMail the officeMail to set
	 */
	public void setOfficeMail(String officeMail) {
		this.officeMail = officeMail;
	}

	/**
	 * @return the officePhone
	 */
	public String getOfficePhone() {
		return officePhone;
	}

	/**
	 * @param officePhone the officePhone to set
	 */
	public void setOfficePhone(String officePhone) {
		this.officePhone = officePhone;
	}

	/**
	 * @return the officeFax
	 */
	public String getOfficeFax() {
		return officeFax;
	}

	/**
	 * @param officeFax the officeFax to set
	 */
	public void setOfficeFax(String officeFax) {
		this.officeFax = officeFax;
	}

	/**
	 * @return the officeAddress
	 */
	public String getOfficeAddress() {
		return officeAddress;
	}

	/**
	 * @param officeAddress the officeAddress to set
	 */
	public void setOfficeAddress(String officeAddress) {
		this.officeAddress = officeAddress;
	}

	/**
	 * @return the webSite
	 */
	public String getWebSite() {
		return webSite;
	}

	/**
	 * @param webSite the webSite to set
	 */
	public void setWebSite(String webSite) {
		this.webSite = webSite;
	}

	/**
	 * @return the parentId
	 */
	@Override
	public String getParentId() {
		return parentId;
	}

	/**
	 * @param parentId
	 *            the parentId to set
	 */
	public void setParentId(String parentId) {
		this.parentId = parentId;
	}

	/*
	 * (non-Javadoc)
	 * 
	 * @see com.mvity.framework.common.base.IParent#getEntityType()
	 */
	@Override
	public String getEntityType() {
		return "COMPANY";
	}

}
